#ifndef AVATARAREA_H_
#define AVATARAREA_H_


#include "../..//core/Buddy.h"
#include "EntryToolTip.h"
#include <wx/panel.h>

namespace Impp
{

class AvatarArea : public wxPanel
{
private:
	Buddy* owner;
	wxBitmap avatar;
	wxBitmap avatarScaled;
	EntryToolTip* toolTip;
	wxSize size;

public:
	AvatarArea(wxPanel* parent, long id, Buddy* owner,const wxSize & size);
	virtual ~AvatarArea();

	void onPaint(wxPaintEvent& evt);
	void OnEraseBackground(wxEraseEvent& evt);
	void onMouseEntered(wxMouseEvent & event);
	void onMouseLeaved(wxMouseEvent & event);
	void avatarChanged();

private:
	DECLARE_EVENT_TABLE()

};

}

#endif /*AVATARAREA_H_*/
